<!DOCTYPE html>
<html lang="en" xmlns:th="www.thymeleaf.org">
<head th:replace="personal::head"></head>
<body>
<div class="wrapper">
    <div class="sidebar" data-color="blue" data-image="assets/img/sidebar-5.jpg">
        <div class="sidebar-wrapper">
            <div class="logo">
                <a href="" class="simple-text">
                    个人中心
                </a>
            </div>

            <ul class="nav" th:fragment="admin001">
                <li>
                    <a th:href="@{personal}">
                        <i class="pe-7s-user"></i>
                        <p>基本信息</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{bookinfo}">
                        <i class="pe-7s-note2"></i>
                        <p>我的预约</p>
                    </a>
                </li>
                <li>
                    <a th:href="@{feedback}">
                        <i class="pe-7s-news-paper"></i>
                        <p>我的反馈</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>

    <div class="main-panel">
        <nav class="navbar navbar-default navbar-fixed">
            <div class="container-fluid">
                <div class="collapse navbar-collapse" th:fragment="admin002">
                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a th:href="@{/index}">
                                退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>
        </nav>
        <div class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="header">
                                <h4 class="title">预约信息</h4>
                            </div>
                            <div class="content table-responsive table-full-width">
                                <table class="table table-hover table-striped">
                                    <thead>
                                    <th>预约单号</th>
                                    <th>时间</th>
                                    <th>人数</th>
                                    <th>备注</th>
                                    <th>处理状态</th>
                                    </thead>
                                    <tbody>
                                    <tr v-for="b in bookinfo">
                                        <td v-cloak>{{b.bid}}</td>
                                        <td v-cloak>{{b.date}}</td>
                                        <td v-cloak>{{b.number}}</td>
                                        <td v-cloak>{{b.mark}}</td>
                                        <td v-cloak>{{b.status}}</td>
                                    </tr>
                                    </tbody>
                                </table>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <footer class="footer">
            <div class="container-fluid">
                <p class="copyright pull-right">
                    Copyright ©2022 版权所有 湘公网安备1101080209224 湘 ICP证 100714号
                </p>
            </div>
        </footer>

    </div>
</div>
</body>
<!--   Core JS Files   -->
<script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.min.js" type="text/javascript"></script>

<!--  Checkbox, Radio & Switch Plugins -->
<script src="assets/js/bootstrap-checkbox-radio-switch.js"></script>

<!--  Charts Plugin -->
<script src="assets/js/chartist.min.js"></script>

<!--  Notifications Plugin    -->
<script src="assets/js/bootstrap-notify.js"></script>

<!--  Google Maps Plugin    -->
<!---<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>--->

<!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
<script src="assets/js/light-bootstrap-dashboard.js"></script>

<!-- Light Bootstrap Table DEMO methods, don't include it in your project! -->
<script src="assets/js/demo.js"></script>

<script type="text/javascript">
    $(document).ready(function(){

        demo.initChartist();

        $.notify({
            icon: 'pe-7s-gift',
            message: "欢迎来到<b>我的个人中心</b>"

        },{
            type: 'info',
            timer: 4000
        });

    });
</script>
<script src="https://lib.baomitu.com/vue/2.6.14/vue.min.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.26.0/axios.min.js"></script>
<script>
    var v = new Vue({
        el:".wrapper",
        data:{
            bookinfo:[],
        },
        mounted:function () {
            axios.get("selectBook").then(res=>{
                this.bookinfo = res.data.data;
            })
        }
    })
</script>
</html>